package com.StarStudio.Service.Impl;


import com.StarStudio.Domain.Zone;
import com.StarStudio.Mapper.ZoneMapper;
import com.StarStudio.Service.ZoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZoneServiceImpl implements ZoneService {

    @Autowired
    private ZoneMapper zoneMapper;


    @Override
    public List<Zone> getAll() {
       return zoneMapper.getAll();
    }

    @Override
    public Zone getById(int zoneId) {
        return zoneMapper.getById(zoneId);
    }

    @Override
    public void add(Zone zone) {
        zoneMapper.add(zone);
    }

    @Override
    public void update(Zone zone) {
        zoneMapper.update(zone);
    }

    @Override
    public void delete(int zoneId) {
        zoneMapper.delete(zoneId);
    }
}
